package sms

// Sms 简单工厂模式(所有发短信的供应商都要继承这个接口)
type Sms interface {
	Send(phone, content string) (string, error)
}

func NewSms(service string) (sms Sms) {
	switch service {
	case "smsbao":
		sms = &Smsbao{}
	default:
		sms = nil
	}
	return
}
